home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 22 / CU Amiga Magazine's Super CD-ROM 22 (1998)(EMAP Images)(GB)[!][issue 1998-05].iso / PowerPC / Programming / PPCsiod / sources / globals.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-25  |  2.9 KB  |  106 lines

  1. /* Scheme In One Define.
  2.  
  3. The garbage collector, the name and other parts of this program are
  4.  
  5.  *                     COPYRIGHT (c) 1989 BY                              *
  6.  *      PARADIGM ASSOCIATES INCORPORATED, CAMBRIDGE, MASSACHUSETTS.       *
  7.  
  8. Conversion  to  full scheme standard, characters, vectors, ports, complex &
  9. rational numbers, and other major enhancments by
  10.  
  11.  *      Scaglione Ermanno, v. Pirinoli 16 IMPERIA P.M. 18100 ITALY        * 
  12.  
  13. Permission  to use, copy, modify, distribute and sell this software and its
  14. documentation  for  any purpose and without fee is hereby granted, provided
  15. that  the  above  copyright  notice appear in all copies and that both that
  16. copyright   notice   and   this  permission  notice  appear  in  supporting
  17. documentation,  and that the name of Paradigm Associates Inc not be used in
  18. advertising or publicity pertaining to distribution of the software without
  19. specific, written prior permission.
  20.  
  21. PARADIGM  DISCLAIMS  ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  22. ALL  IMPLIED  WARRANTIES  OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  23. PARADIGM  BE  LIABLE  FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  24. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
  25. IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  26. OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  27.  
  28. */
  29.  
  30. #include <stdio.h>
  31. #include <string.h>
  32. #include <ctype.h>
  33. #include <setjmp.h>
  34. #include <signal.h>
  35. #include <math.h>
  36.  
  37. #include "siod.h"
  38.  
  39. LISP heap,heap_end,heap_org;
  40.  
  41. long heap_size = 5000;
  42. long full_set = 1;
  43. char *init_file = (char *) NULL;
  44. char tkbuffer[TKBUFFERN];
  45. long quiet = 0;
  46. long gc_cells_allocated = 0;
  47.  
  48. double gc_time_taken;
  49. double gc_rt;
  50. long gc_cells_collected;
  51.  
  52. LISP *stack_start_ptr;
  53. LISP freelist;
  54.  
  55. jmp_buf errjmp;
  56. long errjmp_ok = 0;
  57. long nointerrupt = 1;
  58. long interrupt_differed = 0;
  59.  
  60. struct gc_protected *protected_registers = NULL;
  61.  
  62. LISP truth = NIL;
  63. LISP eof_val = NIL;
  64. LISP sym_the_non_printing = NIL;
  65. LISP sym_err_string = NIL;
  66. LISP sym_errobj = NIL;
  67. LISP sym_inspect = NIL;
  68. LISP sym_err_han = NIL;
  69. LISP sym_on_reset = NIL;
  70. LISP sym_debug_mode = NIL;
  71. LISP sym_gc_mode = NIL;
  72. LISP sym_repl_mode = NIL;
  73. LISP sym_stdin = NIL;
  74. LISP sym_stdout = NIL;
  75. LISP sym_scheme_top_level = NIL;
  76. LISP sym_input_port = NIL;
  77. LISP sym_output_port = NIL;
  78. LISP val_scheme_top_level = NIL;
  79. LISP val_input_port = NIL;
  80. LISP val_output_port = NIL;
  81. LISP sym_standard_input = NIL;
  82. LISP sym_standard_output = NIL;
  83. LISP sym_progn = NIL;
  84. LISP sym_fluid_environment = NIL;
  85. LISP sym_user_environment = NIL;
  86. LISP sym_initial_environment = NIL;
  87. LISP sym_lambda = NIL;
  88. LISP sym_quote = NIL;
  89. LISP sym_dot = NIL;
  90. LISP sym_else = NIL;
  91. LISP unbound_marker = NIL;
  92. LISP cur_exp = NIL;
  93. LISP cur_env = NIL;
  94.  
  95. LISP *chararray;
  96. LISP *fixarray;
  97. long fixarray_dim = 100;
  98. LISP *obarray;
  99. long obarray_dim = 100;
  100. FILE *transfile=NULL;
  101.  
  102. struct catch_frame *catch_framep = (struct catch_frame *) NULL;
  103.  
  104. jmp_buf save_regs_gc_mark;
  105.  
  106.